/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pluginMenu;

import java.awt.Toolkit;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;

/**
 *
 * @author mazid
 */
public class MenuEdition {
    private static final MenuEdition instance = new MenuEdition();
    public static MenuEdition getInstance(){
        return instance;
    }
    // fonction pour ajouter le menu Edition
    public JMenu addMenuEdition(){
        JMenu editerMenu = new JMenu("Edition");
        JMenuItem item = new JMenuItem("Copier");
       // item.addActionListener(afficherMenuListener);
        item.setAccelerator(KeyStroke.getKeyStroke('C', Toolkit.getDefaultToolkit()
            .getMenuShortcutKeyMask(), false));
        editerMenu.add(item);
        item = new JMenuItem("Couper");
        //item.addActionListener(afficherMenuListener);
        item.setAccelerator(KeyStroke.getKeyStroke('X', Toolkit.getDefaultToolkit()
            .getMenuShortcutKeyMask(), false));
        editerMenu.add(item);
        item = new JMenuItem("Coller");
        //item.addActionListener(afficherMenuListener);
        item.setAccelerator(KeyStroke.getKeyStroke('V', Toolkit.getDefaultToolkit()
            .getMenuShortcutKeyMask(), false));
        editerMenu.add(item);
        return editerMenu;
    }
}
